import { request, config } from 'utils'

const { api } = config
const { search, users, updateState, deleted, info, depUser,send } = api

export async function userLis (params) {
	return request({
	    url: users,
	    method: 'get',
	    data: params,
	})
}

export async function searchs (params){
	return request({
		url:search,
		method:'get',
		data:params,
	})
}

export async function changeState (params){
	return request({
		url:updateState,
		method:'get',
		data:params,
	})
}

export async function remove (params){
	return request({
		url:deleted,
		method:'get',
		data:params,
	})
}

export async function infoDetais (params){
	return request({
		url:info,
		method:'get',
		data:params,
	})
}

export async function userLists (params){
	return request({
		url:depUser,
		method:'get',
		data:params,
	})
}

export async function sends (params){
	return request({
		url:send,
		method:'get',
		data:params,
	})
}
